import {createRouter, createWebHistory} from 'vue-router';

import NetDisk from '../pages/NetDisk.vue';
import Install from "../pages/Install.vue";
import DeployPolicy from "../licences/DeployPolicy.vue";
import ChildrenPolicy from "../licences/ChildrenPolicy.vue";
import PrivatePolicy from "../licences/PrivatePolicy.vue";
import ELUA from "../licences/EULA.vue";

const routes = [
    {
        path:'/',
        name:'NetDisk',
        component:NetDisk
    },
    {
        path:'/install',
        name:'install',
        component:Install
    },
    {
        path:'/licenses/deploy',
        name:'DeployPolicy',
        component:DeployPolicy
    },
    {
        path:'/licenses/children',
        name:'ChildrenPolicy',
        component:ChildrenPolicy
    },
    {
        path:'/licenses/private',
        name:'PrivatePolicy',
        component:PrivatePolicy
    },
    {
        path:'/licenses/eula',
        name:'EULA',
        component: ELUA
    }
]

const router = createRouter({
    history:createWebHistory(import.meta.env.BASE_URL),
    routes
})

export default router